package com.example.wastes.shopping.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.wastes.common.pojo.Shopping;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface ShoppingMapper extends BaseMapper<Shopping> {
    List<Shopping> findShoppingranking();
    List<Shopping> findShopingcondition(int id);

    Shopping SelectIntegral(@Param("id") Integer id);
    //通过商品名称查询所有
    List<Shopping> findShoppingName(String shoppingname);
    int upShopping(Shopping shopping);
    int intaa(Shopping shopping);
}
